﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Design.Resources
{
    public partial class NovoContato : Form
    {
        public NovoContato()
        {
            InitializeComponent();
        }



        private void NovoContato_Load(object sender, EventArgs e)
        {
            gbxEmpresa.Visible = false;
            gbxContato.Visible = false;
        }

        private void cbxTipoContato_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cbxTipoContato.SelectedItem.Equals("Pessoa"))
            {
                gbxContato.Visible = true;
                gbxEmpresa.Visible = false;
            }
            else if (cbxTipoContato.SelectedItem.Equals("Empresa"))
            {
                gbxEmpresa.Visible = true;
                gbxContato.Visible = false;
            }
        }

     


    }
}
